package timbap.visualizer.coreplugins;

import timbap.visualizer.api.model.RecordItem;
import timbap.visualizer.api.plugin.recorditems.AbstractSelectedRecordItemPlugin;
import timbap.visualizer.api.plugin.recorditems.RecordItemsPlugin;

public class DefaultRecordItemInfoPlugin extends AbstractSelectedRecordItemPlugin
										 implements RecordItemsPlugin {

	public void drawRecordItem(RecordItem pRecordItem) {
        
		getContext().getP5Applet().pushMatrix();
		getContext().getP5Applet().scale(0.0005f * getContext().getCfg().getScreenHeight());
        getContext().getP5Applet().fill(255,200,200);
        
        getContext().getP5Applet().text(pRecordItem.getPlaylistEntry().getArtistName(),
                                        getContext().getCfg().getScreenHeight() / -2 + 50, -100,
                                        getContext().getCfg().getScreenHeight() * 2, 50,
                                        getContext().getCfg().getScreenHeight());
        getContext().getP5Applet().fill(155,100,100);
        getContext().getP5Applet().text(pRecordItem.getPlaylistEntry().getSongTitle(),
                                        getContext().getCfg().getScreenHeight() / -2 + 70, -50,
                                        getContext().getCfg().getScreenHeight() * 2, 100,
                                        getContext().getCfg().getScreenHeight());
        getContext().getP5Applet().fill(255,255,255);
		
        getContext().getP5Applet().popMatrix();
        
    }

}
